<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript">
function chkinput(){
	if(document.login_form.id.value==""){
		alert("id가 비었습니다");
		document.login_form.id.focus();
		return false;
	}
	if(document.login_form.password.value==""){
		alert("password가 비었습니다");
		document.login_form.password.focus();
		return false;
	}
}
</script>
<p>로그인</p><!-- 로그인 에러 메세지 -->
<c:if test="${not empty requestScope.error_message }">
	<font color="red" size="2">${requestScope.error_message}</font>
</c:if>
	<form name="login_form" action="login.do" method="post" onsubmit="return chkinput()">
		<table border="1">
			<tr>
				<td align="right">id : <input type="text" name="member_id" size="10"></td>
			</tr>
			<tr>
				<td align="right">pwd : <input type="password" name="member_password" size="10"></td>
			</tr>	
			<tr>
				<td align="center"><input type="reset" value="재작성"><input type="submit" value="로그인"></td>
			</tr>
		</table>
	</form>
</html>